package io;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class ReaderMain {

	public static void main(String[] args) throws IOException {
		StringBuilder sb = new StringBuilder();
		char[] buf = new char[1024];
		File file = new File("F:\\workspace_ee\\java-origin","\\bin\\io\\test1.txt");
		if(!file.exists()){
			file.createNewFile();
		}
		FileReader fr = new FileReader(file);
		while(fr.read(buf) > 0){
			sb.append(buf);
		}
		fr.close();
		System.out.println(sb.toString());
	}

}
